package org.classg.edu.client;

import org.classg.edu.client.impl.UcenterClientImpl;
import org.classg.vo.UcenterMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-ucenter", fallback = UcenterClientImpl.class)
public interface UcenterClient {

    // 根据用户id查询用户信息
    @GetMapping("/ucenterservice/member/queryUserById/{id}")
    UcenterMemberVo queryUserById(@PathVariable("id") String id);

}
